package org.flower.entity;

import java.util.List;

/**
 * 商品分类实体类
 * @author 29091
 *
 */
public class CommodityClass {
	
	private int id;//编号
	private String name;//分类名称
	private int pid;//父级编号
	private int type;//级别
	private String image;//图片路径
	private String ahref;//链接路径
	private List<CommodityClass> subClass;//该类别拥有的子类别
	private boolean grade3 = false;//是否有3级类别   默认没有
	
	public CommodityClass() {
		super();
		// TODO Auto-generated constructor stub
	}

	public CommodityClass(int id, String name, int pid, int type, String image,
			String ahref) {
		super();
		this.id = id;
		this.name = name;
		this.pid = pid;
		this.type = type;
		this.image = image;
		this.ahref = ahref;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getPid() {
		return pid;
	}

	public void setPid(int pid) {
		this.pid = pid;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public String getAhref() {
		return ahref;
	}

	public void setAhref(String ahref) {
		this.ahref = ahref;
	}

	public List<CommodityClass> getSubClass() {
		return subClass;
	}

	public void setSubClass(List<CommodityClass> subClass) {
		this.subClass = subClass;
	}

	public boolean isGrade3() {
		return grade3;
	}

	public void setGrade3(boolean grade3) {
		this.grade3 = grade3;
	}
	
	
	
}
